package com.oa.api.web.dao;

import java.util.List;
import java.util.Map;

import org.springframework.data.repository.query.Param;

public interface OaMapper {
	List<Map<String,Object>> checkOaUser(@Param(value="user_accounts") String user_accounts);
	List<Map<String,Object>> queryOaUser(Map<String, Object> m);
	List<Map<String, Object>> queryMenuZtree(Map<String, Object> parm);
	List<Map<String, Object>> queryRoleList(Map<String, Object> parm);
	int saveRoleMenu(Map<String, Object> parm);
	int deleteRoleMenu(Map<String, Object> parm);
	int insertMenu(Map<String, Object> parm);
	int updateMenu(Map<String, Object> parm);
	int deleteMenu(@Param(value="id") String id);
	List<String> queryMenuByPid(@Param(value="pid") String pid);
	List<Map<String, Object>> queryDepartmentPark(Map<String, Object> parm);
	
	List<Map<String, Object>> queryDepartmentPark2(Map<String, Object> parm);
	List<Map<String, Object>> queryDepartmentParkAll(Map<String, Object> parm);
	List<Map<String, Object>> queryDepartmentParkChildren(Map<String, Object> parm);
	List<Map<String, Object>> queryUserByDeptId(Map<String, Object> parm);
	List<Map<String, Object>> queryDepartmentParkChildrenAll(Map<String, Object> parm);
	
	List<Map<String, Object>> queryTearcherList(Map<String, Object> parm);
	String getUserIDByName(String userName);
	
}
